package com.enjoy.studyfragment.bean;

import java.io.Serializable;
import java.util.List;

/**
 * Created by Administrator on 2018/2/4.
 */

public class UserTable implements Serializable {
    private Integer id;	//主键  自增长
    private String user_name;	//用户名称
    private String user_no;	//账号/手机号
    private String head_url;	//头像
    private String pwd;	//密码
    private Integer sex;	//性别 1-男  2-女
    private Integer is_inform;	//是否开启消息通知  0-未开启  1-开启
    private String token;
    private Integer role_type_id;
    private List<ClassList> classList;
    private int class_id;
    private String head_path;

    public UserTable(Integer id, String user_name, String user_no, String head_url, String pwd,
                     Integer sex, Integer is_inform, String token, Integer role_type_id,
                     List<ClassList> classList, int class_id, String head_path) {
        this.id = id;
        this.user_name = user_name;
        this.user_no = user_no;
        this.head_url = head_url;
        this.pwd = pwd;
        this.sex = sex;
        this.is_inform = is_inform;
        this.token = token;
        this.role_type_id = role_type_id;
        this.classList=classList;
        this.class_id=class_id;
        this.head_path=head_path;
    }

    public Integer getUser_id() {
        return id;
    }

    public String getUser_name() {
        return user_name;
    }

    public String getUser_no() {
        return user_no;
    }


    public String getPwd() {
        return pwd;
    }

    public Integer getSex() {
        return sex;
    }

    public Integer getIs_inform() {
        return is_inform;
    }

    public String getToken() {
        return token;
    }


    public Integer getRole_type_id() {
        return role_type_id;
    }

    public void setUser_no(String user_no) {
        this.user_no = user_no;
    }

    public void setUser_name(String user_name) {
        this.user_name = user_name;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public List<ClassList> getList() {
        return classList;
    }

    public void setList(List<ClassList> list) {
        this.classList = list;
    }

    public int getClass_id() {
        return class_id;
    }

    public void setClass_id(int class_id) {
        this.class_id = class_id;
    }

    public String getHead_path() {
        return head_path;
    }

    public void setHead_path(String head_path) {
        this.head_path = head_path;
    }

    public void setIs_inform(Integer is_inform) {
        this.is_inform = is_inform;
    }

    public static class Builder{
        private Integer user_id;	//主键  自增长
        private String user_name;	//用户名称
        private String user_no;	//账号/手机号
        private String head_url;	//头像
        private String pwd;	//密码
        private Integer sex;	//性别 1-男  2-女
        private Integer is_inform;	//是否开启消息通知  0-未开启  1-开启
        private String token;
        private Integer role_id;
        private Integer role_type_id;
        private List<ClassList> classList;
        private int class_id;
        private String head_path;

        public Builder setId(Integer id) {
            this.user_id = id;
            return this;
        }

        public Builder setUser_name(String user_name) {
            this.user_name = user_name;
            return this;
        }

        public Builder setUser_no(String user_no) {
            this.user_no = user_no;
            return this;
        }

        public Builder setHead_url(String head_url) {
            this.head_url = head_url;
            return this;
        }

        public Builder setPwd(String pwd) {
            this.pwd = pwd;
            return this;
        }

        public Builder setSex(Integer sex) {
            this.sex = sex;
            return this;
        }

        public Builder setIs_inform(Integer is_inform) {
            this.is_inform = is_inform;
            return this;
        }

        public Builder setToken(String token) {
            this.token = token;
            return this;
        }

        public Builder setRole_id(Integer role_id) {
            this.role_id = role_id;
            return this;
        }

        public Builder setRole_type_id(Integer role_type_id) {
            this.role_type_id = role_type_id;
            return this;
        }

        public Builder setList(List<ClassList> list) {
            this.classList = list;
            return this;
        }

        public Builder setClass_id(int class_id) {
            this.class_id = class_id;
            return this;
        }

        public Builder setHead_path(String head_path) {
            this.head_path = head_path;
            return this;
        }

        public UserTable builder(){
            return new UserTable(user_id,user_name,user_no,head_url,pwd,sex,is_inform,token,
                    role_type_id,classList,class_id,head_path);
        }
    }


}
